package com.winning.sjzc.common.utils;

public class PaginationResponseEntity extends ResponseEntity{

    public PaginationResponseEntity(PageBean page){
        put("code",200);
        put("total",page.getTotalRecord());
        put("pageSize",page.getPageSize());
        put("pageN0",page.getPageNo());
    }

    public static PaginationResponseEntity ok(PageBean page){
        return new PaginationResponseEntity(page);
    }

    public PaginationResponseEntity put(String key,Object value){
        super.put(key,value);
        return this;
    }

}
